import React, { Component } from 'react';
import { View,ScrollView,Text } from 'react-native';
import Bananas from './jscode/Bananas';
import Greeting from './jscode/Text';
import Blink from './jscode/State';
import FixedDimensionsBasics from './jscode/Flexbox';
import PizzaTranslator from './jscode/TextInput';
import IScrolledDownAndWhatHappenedNextShockedMe from './jscode/ScrollView';
import FlatListBasics from './jscode/FlatList';
import SectionListBasics from './jscode/SectionList';

export default class BaseView extends Component {
  render() {
    return (
      <View style={{padding: 2}}>
        <ScrollView>
          <Bananas />
          <Greeting name="这是个text标签实例" />
          <Blink text='Look at me look at me look at me'/>
          <FixedDimensionsBasics />
          <PizzaTranslator />
          <IScrolledDownAndWhatHappenedNextShockedMe />
          <FlatListBasics />
          <SectionListBasics />
          <Text>-------------分割线-------------</Text>
        </ScrollView>
      </View>
    );
  }
}
